#pragma once


// CStaticProgress

class CStaticProgress : public CStatic
{
        DECLARE_DYNAMIC(CStaticProgress)

    public:
        CStaticProgress();
        virtual ~CStaticProgress();

        void SetValue(int v);
        void SetCap(int over_cap);
        void SetMax(int cap, int over_cap);

        void SetColors(COLORREF c1, COLORREF c2);
        void ShowValues(bool enable = true);


        afx_msg void OnPaint();

        DECLARE_MESSAGE_MAP()

    private:

        bool mb_auto_valueshow;

        COLORREF mc_col1;
        COLORREF mc_col2;

        int mn_value;
        int mn_ovr_cap;

        int mn_max;
        int mn_max_ovr;

};


